package eteam.aps.systemservice.dal;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import eteam.aps.systeminterface.model.entity.FlowBillEntity;
import eteam.aps.systemservice.dal.mapper.IFlowBillMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowBillDal {

    @Autowired
    private IFlowBillMapper flowBillMapper;


    /**
     * 获取所有的流程单据entity类
     *
     * @return FlowBillEntity列表
     */
    public List<FlowBillEntity> getAllFlowBill() {
        QueryWrapper<FlowBillEntity> wrapper = new QueryWrapper<>();
        List<FlowBillEntity> flowBillEntities = flowBillMapper.selectList(wrapper);
        return flowBillEntities;
    }
}
